package com.hmkj.quartz.config;

import com.hmkj.core.api.ufx.call.QuotationCall;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 初始化数据
 */
@Slf4j
@Component
public class Init implements CommandLineRunner {
    @Override
    public void run(String... strings) throws Exception {
        // 初始化行情服务器连接
        QuotationCall.getInstance().initT2();

        // 订阅行情主推信息
        QuotationCall.getInstance().reqSubQuotation();
    }


}
